package com.cn.service.impl;

import java.util.List;

import com.cn.dao.AdminDAO;
import com.cn.dao.OrderDAO;
import com.cn.dao.ProviderDAO;
import com.cn.service.AdminService;

public class AdminServiceImpl implements AdminService{
	private AdminDAO adminDao = null;
	private OrderDAO orderDao=null;
	private ProviderDAO providerDao=null;

	public AdminDAO getAdminDao() {
		return adminDao;
	}

	public void setAdminDao(AdminDAO adminDao) {
		this.adminDao = adminDao;
	}

	public String averageRank(){
		return "succeed";
	}
	public String permit(){
		
		return "succeed";
	}

	public List getAllProviderByAdmin()
	{
		return adminDao.getAllProviderByAdmin();
	}
	
	public String acceptProvider(int pro_id)
	{
		return adminDao.acceptProvider(pro_id);
	}
	public String rejectProvider(int pro_id)
	{
		return adminDao.rejectProvider(pro_id);
	}
	public String banProvider(int pro_id)
	{
		return adminDao.banProvider(pro_id);
	}
}
